package com.ly.common.biz;

public class BizException extends Exception {

    private int errorCode;

    public BizException(String message) {
        this(message, 0);
    }

    public BizException(String message, Throwable cause) {
        this(message, cause, 0);
    }

    public BizException(String message, int errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public BizException(String message, Throwable cause, int errorCode) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
